<template>
  <div>
    <el-timeline>
      <el-timeline-item v-for="item in chapterList" :key="item.id" :timestamp="item.timestamp" placement="top">
        <el-card>
           <h4>{{item.content}}</h4>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
import { chapter } from '../../../api/user'
export default {
  data() {
    return {
        chapterList: [],
    };
  },
  mounted() {
      this.getChapter()
  },
  methods: {
      async getChapter(){
          this.chapterList = await chapter()
          console.log(this.chapterList);
      }
  },
};
</script>

<style scoped >
</style>
